//
//  NSDate-Extension.swift
//  liveDemo
//
//  Created by satoshi_uma on 2020/10/23.
//  Copyright © 2020 satoshi_uma. All rights reserved.
//

import UIKit

extension NSDate {
    
    /// 从1970年到现在有多少秒
    class func getCurrentTime() -> String{
        
        let nowDate = NSDate()
        
        let interval = nowDate.timeIntervalSince1970
        
        return "\(interval)"
    }
}
